package com.hadoop.sxtmr;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Partitioner;

public class Firstpartition extends Partitioner<KeyPair, Text>{

	@Override
	public int getPartition(KeyPair key, Text value, int numPartitions) {
		System.out.println("partition");
		return (key.getYear() * 256) % numPartitions;
	}
	
	

}
